class RemoveAddressFromUser < ActiveRecord::Migration
  def self.up
    remove_column :users, :street
    remove_column :users, :house_number
    remove_column :users, :house_number_addition
    remove_column :users, :city
    remove_column :users, :postalcode
    remove_column :users, :telephone_number
    remove_column :users, :modile_number
    remove_column :users, :fax_number
  end

  def self.down
    add_column :users, :street, :string
    add_column :users, :house_number, :string
    add_column :users, :house_number_addition, :string
    add_column :users, :city, :string
    add_column :users, :postalcode, :string
    add_column :users, :telephone_number, :string
    add_column :users, :modile_number, :string
    add_column :users, :fax_number, :string
  end
end
